#include <stdio.h>
#include <stdlib.h>
#include "thread.h"


typedef struct thread_list_info {
  thread_t data;
  struct thread_list_info * next;
  struct thread_list_info * previous;
}thread_l;

typedef struct thread_list_info * thread_list;


int thread_list_is_empty(thread_list);
int thread_list_size(thread_list);
thread_t thread_list_first_elem(thread_list);
thread_t thread_list_last_elem(thread_list);
thread_list thread_list_last(thread_list list);
thread_list thread_list_add_front(thread_list,thread_t);
thread_list thread_list_add_back(thread_list,thread_t);
thread_list thread_list_delete_elem(thread_list,thread_t);
thread_list thread_list_suppr(thread_list);
